@extends('WShop::layout')
@section('content')
    @include('WShop::public.header')
    @component('WShop::public.header')
        @slot('page_title'){{$page_title}} @endslot
    @endcomponent
    <div class="mui-content mui-scroll-wrapper" id="pullrefresh">
        <div class="mui-scroll">

            <div class="mui-table-view mui-table-view-chevron mui-chaxun mui-bottom">

                <div class="mui-zhuda">
                    @if($list->isNotEmpty())
                    <div class="mui-chaxun-list">
                        <div class="chaxun-list">
                            <p></p>
                            <ul class="mui-list-unstyled mui-clearfix" id="pull-load">
                                @foreach($list as $item)
                                <li class="bg-fff flex">
                                    <p style="width: 120px;">
                                        <img src="{{$item->cover}}" alt="">
                                    </p>
                                    <div class="mui-ellipsis">
                                        <div>{{$item->title}}</div>
                                        <p>{{$item->created_at}}</p>
                                    </div>
                                    <div class="{{$item->status == 1?'mui-text-red':'mui-text-blue'}} mui-text-right">
                                        @if($item->status==1)
                                            待发奖
                                        @elseif($item->status==2)
                                            已核销
                                        @else
                                            已作废
                                        @endif
                                    </div>
                                </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                    @else
                        <div style="height: 110px;"></div>
                        <div class="mui-text-center">
                            <img src="{{asset(config('mall.wap_assets1').'/images/empty.png')}}" alt="" width="200">
                            <p style="margin-top: 50px;"><a href="javascript:void(0);" style="color: #fff;border: 1px solid #8a96a2;padding: 8px 24px;border-radius: 16px;background: #8a96a2;">暂无数据</a></p>
                        </div>

                    @endif

                </div>

            </div>
        </div>
    </div>
    @include('WShop::public.foot_bar',['active'=>'user'])
@endsection

@push('scripts')
@endpush